#ifndef QQCELLTITLE_H
#define QQCELLTITLE_H

#include <QWidget>
#include<QEvent>
#include<QMouseEvent>

namespace Ui {
class QQCellTitle;
}

class QQCellTitle : public QWidget
{
    Q_OBJECT

public:
    explicit QQCellTitle(const QString &groupname, QWidget *parent = nullptr);
    ~QQCellTitle();
    void setOnlineAndGroup(int onlineCount=0,int groupCount=0);
bool eventFilter(QObject *watched, QEvent *event);
signals:
void sigCellStatusChanged(bool isOpen);//根据触发celltitle更改cell的大小
private:
    Ui::QQCellTitle *ui;

    bool isOpen;
};

#endif // QQCELLTITLE_H
